package com.intlke.example.app.response;

import com.intlke.example.app.enums.IEnumProvider;

/**
 * <p>描述:</p>
 * <p>请在此处填写描述</p>
 *
 * @author fengwenping
 * @version 1.0.0
 * @since 2024/11/10 22:13
 */
public enum ResponseState implements IEnumProvider<String> {
    SUCCESS("20000", "请求成功"),
    ERROR("40000", "系统未知错误"),
    ;

    ResponseState(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private final String code;
    private final String message;


    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
